home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickTime / Programming Stuff / Documentation / develop articles / develop Issue 13 / Inside QuickTime and Components / Debugger Extensions / Tools / MPW RIncludes / MacsBug.r next >
Encoding:
Text File  |  1993-01-18  |  2.7 KB  |  95 lines  |  [TEXT/MPS ]

  1. /* Copyright Apple Computer, Inc. 1981-1988 */
  2.  
  3. #ifndef    __MACSBUGREZ__
  4. #define __MACSBUGREZ__
  5.  
  6. /*
  7.     'mxwt' is a new resource type for templates. The only difference is a word count
  8.     for the number of fields in a type. 'mxbt' used a byte count. 'mxbt' is still
  9.     supported.  However, you need the word count if you want to use ResEdit to create
  10.     templates.
  11. */
  12.  
  13. type 'mxwt'{
  14.     integer = $$CountOf(templates);                    /* Number of templates               */
  15.     array templates { pString;                        /* Type name                         */
  16.                       integer = $$CountOf(fields);  /* Number of fields in this template */
  17.                       array fields { pString;        /* Field name                        */
  18.                                      pString;       /* Field type                        */
  19.                                      integer;        /* Number of fields of this type     */
  20.                                    };
  21.                     };
  22. };
  23.  
  24.     /* Sample shows all possible types:
  25.     "Sample", {
  26.          "Byte",                "Byte",                1,
  27.          "Signed Byte",        "SignedByte",        1,
  28.          "Unsigned Byte",    "UnsignedByte",        1,
  29.          "Align to word",    "Align",            1,
  30.          "Word",                "Word",                1,
  31.          "Signed Word",        "SignedWord",        1,
  32.          "Unsigned Word",    "UnsignedWord",        1,
  33.          "Long",                "Long",                1,
  34.          "Signed Long",        "SignedLong",        1,
  35.          "Unsigned Long",    "UnsignedLong",        1,
  36.         "Boolean",            "Boolean",            1,
  37.         "Padding",            "Skip",              1,
  38.         "Pascal string",    "pString",          10,
  39.         "C string",            "cString",          1,
  40.          "Align to word",    "Align",            1,
  41.         "Text",                "Text",                4,
  42.         "Handle",            "Handle",            1,
  43.         "Pointer",            "Pointer",            1,
  44.         "Next",                "^Sample",            1
  45.         },
  46.     */
  47.  
  48.  
  49. /*
  50.     The 'mxbc' resource sets the foreground and background colors for
  51.     the MacsBug display.  The default is black characters on a white background.
  52. */
  53.  
  54. type 'mxbc' {
  55.         unsigned integer;        /* Background RGB:    red        */
  56.         unsigned integer;                        /*    green    */
  57.         unsigned integer;                        /*    blue    */
  58.         unsigned integer;        /* Foreground RGB:    red        */
  59.         unsigned integer;                        /*    green    */
  60.         unsigned integer;                        /*    blue    */
  61. };    
  62.  
  63. /*
  64.     The 'mxbm' resource creates macros in the same manner as the mc command in
  65.     MacsBug.
  66. */
  67.  
  68. type 'mxbm'{
  69.     integer = $$CountOf(symbols);          /* Number of entries     */
  70.     array symbols { pString; pString; };   /* Macro name; expansion */
  71. };
  72.  
  73. /* 
  74.  
  75. The 'mxbi' resource initializes MacsBug options for:
  76.  
  77.     • The number of traps that are recorded using ATR/ATP commands
  78.     • The number of lines in the PC window
  79.     • The number of bytes used to save the command history
  80.  
  81. If no mxbi resource is found then MacsBug defaults to:
  82.  
  83.     • 16 traps recorded
  84.     • 2  lines in the PC window
  85.     • 2K bytes of command history
  86.  
  87. */
  88.  
  89. type 'mxbi' {
  90.     unsigned integer;        /* How many traps to record                            */
  91.     unsigned integer;        /* Number of lines displayed in the PC window        */
  92.     unsigned integer;        /* Number of bytes used to save the command history    */
  93. };
  94.  
  95. #endif